---
layout: single
property_name: flex-wrap
---

<section id="flex-wrap" class="property">
  <header class="property-header">
    <nav class="property-links">
        <a class="property-collection" href="{{site.url}}/flexbox/">
          In collection: <strong>flexbox</strong>
        </a>
      <a class="property-links-direct" href="{{site.url}}/property/flex-wrap/" data-property-name="flex-wrap" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="flex-wrap">Share</a>
        <a target="_blank" href="http://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/flex-wrap" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#flex-wrap"><span>#</span>flex-wrap</a>
    </h2>
    <div class="property-description">
      <p>Defines if flexbox items appear on a <strong>single line</strong> or on <strong>multiple lines</strong> within a flexbox container.</p>

    </div>

  </header>

    <style type="text/css">.flex-wrap { background: #310736;display: flex;max-width: 360px; }</style>




    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-wrap: nowrap;">flex-wrap: nowrap;</code>
        </p>
        <div class="example-description">
          <p>The flexbox items will remain on a <strong>single line</strong>, no matter what, and will eventually overflow if needed.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div flex-wrap " id="flex-wrap-nowrap"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p></div>
        </div>
      </aside>
          <style type="text/css">#flex-wrap-nowrap{ flex-wrap:nowrap;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-wrap: wrap;">flex-wrap: wrap;</code>
        </p>
        <div class="example-description">
          <p>The flexbox items will be distributed among <strong>multiple lines</strong> if needed.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div flex-wrap " id="flex-wrap-wrap"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p></div>
        </div>
      </aside>
          <style type="text/css">#flex-wrap-wrap{ flex-wrap:wrap;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-wrap: wrap-reverse;">flex-wrap: wrap-reverse;</code>
        </p>
        <div class="example-description">
          <p>The flexbox items will be distributed among <strong>multiple lines</strong> if needed. Any additional line will appear <strong>before</strong> the previous one.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div flex-wrap " id="flex-wrap-wrap-reverse"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p></div>
        </div>
      </aside>
          <style type="text/css">#flex-wrap-wrap-reverse{ flex-wrap:wrap-reverse;}</style>
    </section>

</section>
